﻿@using LastoRevival.Website


@if (Html.IsAuthenticated()) 
{
    <span class="loginstate">
		@Html.Raw(string.Format(LanguageLoader.GetWord("WelcomeMessageFormat"), Html.ActionLink(Html.Profile().Username, "ViewUser", "User", new { username = Html.Profile().Username }, null)))
        <a id="logoff" href='@Url.Action("Logout", "User")'>@LanguageLoader.GetWord("LogOff")</a>
    </span>
}
else 
{
    <span class="loginstate">
		<a id="login" href='@Url.Action("Login", "User")'>@LanguageLoader.GetWord("LogOn")</a>
		<a id="register" href="@Url.Action("Register", "User")">@LanguageLoader.GetWord("Register")</a>
	</span>
	
}
